cc_library(
    name = "pipeline",
    srcs = [
        "ProgressIndicator.cc",
        "ProgressIndicator.h",
        "pipeline.cc",
    ],
    hdrs = ["pipeline.h"],
    linkstatic = select({
        "//tools/config:linkshared": 0,
        "//conditions:default": 1,
    }),
    visibility = ["//visibility:public"],
    deps = [
        "//ast/desugar",
        "//ast/substitute",
        "//ast/treemap",
        "//cfg",
        "//cfg/builder",
        "//class_flatten",
        "//common/concurrency",
        "//common/json2msgpack",
        "//common/kvstore",
        "//core",
        "//core/proto",
        "//core/serialize",
        "//definition_validator",
        "//infer",
        "//local_vars",
        "//main/autogen",
        "//main/options",
        "//namer",
        "//packager",
        "//parser",
        "//parser/prism",
        "//payload",
        "//payload/binary",
        "//payload/text",
        "//rbs",
        "//resolver",
        "//rewriter",
    ],
)

cc_library(
    name = "pipeline-orig",
    srcs = [
        "ProgressIndicator.cc",
        "ProgressIndicator.h",
        "pipeline.cc",
    ],
    hdrs = ["pipeline.h"],
    defines = ["SORBET_REALMAIN_MIN"],
    linkstatic = select({
        "//tools/config:linkshared": 0,
        "//conditions:default": 1,
    }),
    visibility = ["//visibility:public"],
    deps = [
        "//ast/desugar",
        "//ast/substitute",
        "//ast/treemap",
        "//cfg",
        "//cfg/builder",
        "//class_flatten",
        "//common/concurrency",
        "//common/kvstore",
        "//core",
        "//core/serialize",
        "//definition_validator",
        "//infer",
        "//local_vars",
        "//main/options",
        "//namer",
        "//packager",
        "//parser",
        "//parser/prism",
        "//payload/binary",
        "//payload/text",
        "//rbs",
        "//resolver",
        "//rewriter",
    ],
)
